<template>
  <Table :columns="columns" :data="forms"></Table>
</template>

<script>
import formCenterApi from '@/api/formCenter.js'
export default {
  name: 'reportHistory',
  props: {
    row: {
      type: Object,
      default: () => {}
    }
  },
  data() {
    return {
      forms: [],
      columns: [
        {
          title: '已发起填报周期',
          key: 'period',
          align: 'center'
        },
        {
          title: '发起人',
          key: 'creator',
          align: 'center'
        },
        {
          title: '时间',
          key: 'createTime',
          align: 'center'
        }
      ]
    }
  },
  mounted() {
    this.$emit('SetTitle', '历史填报周期')
    this.$emit('SetPageWidth', 600)
    this.$emit('SetPageMinHeight', 200)
    formCenterApi.formReportHistoryFindList({ formId: this.row.id }).then(res => {
      this.forms = res.data.data
    })
  },
  methods: {
    onClick(item) {}
  }
}
</script>
